 |
API Documentation
|
|
|
void addVertexBufferCopy(const nkMemory::BufferView< unsigned char > &view, unsigned int stride=0)
virtual void exportClassToTree(nkExport::Node *rootNode) override
void computeBounds(const nkMemory::StringView &positionAttributeName)
void setInputLayout(const MeshInputLayout &layout)
void setBounds(const BoundingBox &value)
const BoundingBox & getBounds() const
void addVertexBuffer(const nkMemory::BufferView< unsigned char > &view, unsigned int stride=0)
INDEX_FORMAT
Enumerates all formats supported for indices in a mesh.
Definition: IndexFormat.h:12
unsigned int getVertexBufferStride(unsigned int index) const
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
void setId(unsigned int value)
A bounding box. Often used to encompass object's bounds in the world.
Definition: BoundingBox.h:14
void setAutoComputeBounds(bool value)
virtual void importClassFromTree(nkExport::Node *rootNode) override
void setIndexBufferForward(nkMemory::Buffer &&buffer)
void setIndexFormat(INDEX_FORMAT value)
nkMemory::BufferView< unsigned char > getIndexBuffer() const
nkMemory::BufferView< unsigned char > getVertexBuffer(unsigned int index) const
const MeshInputLayout & getInputLayout() const
PRIMITIVE_TOPOLOGY
Enumerates all primitive topologies supported for meshes.
Definition: PrimitiveTopology.h:14
unsigned int getId() const
A buffer holding binary data.
Definition: Buffer.h:32
void setTopology(PRIMITIVE_TOPOLOGY value)
void removeVertexBuffer(unsigned int index)
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
unsigned int getVertexBufferCount() const
virtual unsigned int getVertexCount() const
PRIMITIVE_TOPOLOGY getTopology() const
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
void setIndexBufferCopy(const nkMemory::BufferView< unsigned char > &view)
void setVertexCount(int value)
Base class for a resource in the component.
Definition: Resource.h:12
void setIndexCount(int value)
virtual unsigned int getIndexCount() const
bool getAutoComputeBounds() const
void setIndexBuffer(const nkMemory::BufferView< unsigned char > &view)
void addVertexBufferForward(nkMemory::Buffer &&buffer, unsigned int stride=0)
INDEX_FORMAT getIndexFormat() const
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
Holds information about a mesh. Used as a basis to render 3d models.
Definition: Mesh.h:14
virtual void freeShadowBuffers()